home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-09-13 | 4.3 KB | 169 lines | [TEXT/MPS ] |
- /* ------------------------------------------------------------------------------
- FILENAME
- ChooserSupport.r
-
- DESCRIPTION
- This module contains the LaserWriter SC constants, types, and resources that
- are needed in order for the driver to work with the Chooser.
-
- Note: all resources should be designated to load into the system heap.
-
- 9/13/93 - dmh - Updated for the b2 seed.
-
- COPYRIGHT
- Copyright Apple Computer, Inc. 1992
- All rights reserved.
-
- -------------------------------------------------------------------------------- */
-
- // System 7.0 Compatible
- #define SystemSevenOrLater 1
-
- // Include System Resource Definitions
- #include "Types.r"
- #include "SysTypes.r"
-
- // Include the LaserWriter SC driver constants that are used in the resources
- #include "Resources.h"
-
- // Include the public QuickDraw GX printing files
- #include "PrintingResTypes.r"
-
- // Include the LaserWriterSC Driver's LDEF and PACK Code Segments ===== */
-
- include "LWSC_PACK";
- include "LWSC_LDEF";
-
-
- /*********************************************************************************************
- THINGS TO CONTROL THE DEFAULT CHOOSING MECHANSIM
- *********************************************************************************************/
-
- // The 'look' resource is used by the driver's PACK to know how to communicate
- // to the device. This resource contains the default settings, as the actual value
- // can be found in the desktop printer.
-
- resource 'look' (kLookRsrcID, sysheap, purgeable)
- {
- 1, // use the first in our list by default
- {
- "SCSI", kSCSICommRsrcID, iconCells, "";
- "Servers", kPrinterShareCommRsrcID, isAppleTalk+isPrinterShare, "LaserWriterSCIS";
- };
- };
-
-
- // This 'comm' resource defines the default communication settings when using this
- // driver with PrinterShare.
-
- resource 'comm' (kPrinterShareCommRsrcID, sysheap, purgeable)
- {
- PrinterShare
- {
- "",
- 0
- };
- };
-
-
- // This 'comm' resource defines the default communication settings when using this
- // driver with direct SCSI communications.
-
- resource 'comm' (kSCSICommRsrcID, sysheap, purgeable)
- {
- SCSI
- {
- 0, // release device routine
- 0, // io attibutes
- 0, // status byte
- 0, // scsi bus number
- 0, // scsi ID
- 0, // chunk level
- 0, // acquire routine (use default)
- 2, // deviceType to look for
- 27, // minimum length of additional response data
- 8, // bytes from start for search
- "APPLE PERSONAL LASER ", // search string
- };
- };
-
-
- /*********************************************************************************************
- STANDARD CHOOSER PACK STUFF
- *********************************************************************************************/
-
- // NBP Lookup type (maxed out so resource file won't need updating)
- resource 'STR ' (-4096, sysheap, purgeable)
- {
- "XXXXXXXXXXXXXXXXXXXXXX";
- };
-
- // NBP timeout value
- type 'GNRL'
- {
- byte; // timeout
- byte; // retries
- };
-
- resource 'GNRL' (-4096, sysheap, purgeable)
- {
- 11,
- 5
- };
-
- // title string (we'll put a control here, so we don't want a title)
- resource 'STR ' (-4091, sysheap, purgeable)
- {
- "";
- };
-
- // "left" button title
- resource 'STR ' (-4093, sysheap, purgeable)
- {
- "Create";
- };
-
- // rectangle list
- resource 'nrct' (-4096, sysheap, purgeable) {
- {
- {112, 251, 132, 311}; // left button
- {0,0,0,0}; // right button
- {-101, 180, -101+20, 400}; // on button (location of device list - popup is placed here)
- {0,0,0,0}; // off button
- {0,0,0,0}; // button label
- };
- };
-
- // Menu used to select between direct connect, AppleTalk, and Servers
- resource 'MENU' (-4096, sysheap, purgeable)
- {
- -4096,
- textMenuProc,
- 0xFFFFFFFF,
- enabled,
- "",
- {
- }
- };
-
- // Pop-up control used to select between direct connect printers and those being shared on the network
- resource 'CNTL' (-4096, sysheap, purgeable)
- {
- {0, 0, 20, 205}, // zero based control location
- 0, // Title options 0 = Left justified
- visible, // Should we display the control?
- 100, // Title Width
- -4096, // 'MENU' to display
- popupMenuCDEFproc+popupFixedWidth, // CDEF = CDEFID * 16 + varCode
- 0, // refCon = ResType to append = None
- "Connect via:" // Control title
- };
-
- resource 'DITL' (-4096, sysheap, purgeable)
- {
- {
- {3, 250, 23, 250 + 205},
- Control {enabled, -4096},
- };
- };
-